package com.dingqb.ktdemo.oop.delegatemode

import kotlin.properties.Delegates

/**
延迟初始化
 **/

class NotNulll {

}

class Foo {

	var notNullBar: String by Delegates.notNull<String>()
	fun getName(): Unit {
		println("--name--")
	}


}

fun main(args: Array<String>) {
	var foo = Foo();
	foo.notNullBar = "bar"
	println(foo.notNullBar)
	println(Foo::getName)


}